package com.youkeyi.ddy.cloud.basic.hr.approval.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 人事审批节点表
 * </p>
 *
 * @author xiawang.liu
 * @since 2024-05-15
 */
@TableName("tbl_approval_node")
public class TblApprovalNode extends Model<TblApprovalNode> {

    private static final long serialVersionUID = 1L;

    /**
     * Id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("primary_key")
    private String primaryKey;

    /**
     * 解决并发更新问题,每次更新需要用 uuid 做比较判断数据是否已变更
     */
    @TableField("uuid")
    private String uuid;

    /**
     * 旧的uuid,mybatis 更新时需要
     */
    @TableField("old_uuid")
    private String oldUuid;

    /**
     * 角色归属主体
     */
    @TableField("corp_key")
    private String corpKey;

    /**
     * 审批实例key
     */
    @TableField("instance_key")
    private String instanceKey;

    /**
     * 表单
     */
    @TableField("form_json_str")
    private String formJsonStr;

    /**
     * 节点类型：审批、抄送
     */
    @TableField("node_type")
    private String nodeType;

    /**
     * 顺序
     */
    @TableField("sequence")
    private Integer sequence;

    /**
     * 审批人
     */
    @TableField("approver_key")
    private String approverKey;

    /**
     * 审批人
     */
    @TableField("approver")
    private String approver;

    /**
     * 审批时间
     */
    @TableField("approval_time")
    private Date approvalTime;

    /**
     * 审批结果
     */
    @TableField("approval_result")
    private String approvalResult;

    /**
     * 审批意见
     */
    @TableField("approval_comment")
    private String approvalComment;

    /**
     * 上级节点
     */
    @TableField("superior_node")
    private String superiorNode;

    /**
     * 下级节点
     */
    @TableField("subordinate_node")
    private String subordinateNode;

    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;

    /**
     * 是否删除
     */
    @TableField("is_deleted")
    private Integer isDeleted;

    /**
     * 创建人
     */
    @TableField("create_user_key")
    private String createUserKey;

    /**
     * 创建人名称
     */
    @TableField("create_user_name")
    private String createUserName;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新人
     */
    @TableField("update_user_key")
    private String updateUserKey;

    /**
     * 更新人名称
     */
    @TableField("update_user_name")
    private String updateUserName;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(String primaryKey) {
        this.primaryKey = primaryKey;
    }
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }
    public String getOldUuid() {
        return oldUuid;
    }

    public void setOldUuid(String oldUuid) {
        this.oldUuid = oldUuid;
    }
    public String getCorpKey() {
        return corpKey;
    }

    public void setCorpKey(String corpKey) {
        this.corpKey = corpKey;
    }
    public String getInstanceKey() {
        return instanceKey;
    }

    public void setInstanceKey(String instanceKey) {
        this.instanceKey = instanceKey;
    }
    public String getFormJsonStr() {
        return formJsonStr;
    }

    public void setFormJsonStr(String formJsonStr) {
        this.formJsonStr = formJsonStr;
    }
    public String getNodeType() {
        return nodeType;
    }

    public void setNodeType(String nodeType) {
        this.nodeType = nodeType;
    }
    public Integer getSequence() {
        return sequence;
    }

    public void setSequence(Integer sequence) {
        this.sequence = sequence;
    }
    public String getApproverKey() {
        return approverKey;
    }

    public void setApproverKey(String approverKey) {
        this.approverKey = approverKey;
    }
    public String getApprover() {
        return approver;
    }

    public void setApprover(String approver) {
        this.approver = approver;
    }
    public Date getApprovalTime() {
        return approvalTime;
    }

    public void setApprovalTime(Date approvalTime) {
        this.approvalTime = approvalTime;
    }
    public String getApprovalResult() {
        return approvalResult;
    }

    public void setApprovalResult(String approvalResult) {
        this.approvalResult = approvalResult;
    }
    public String getApprovalComment() {
        return approvalComment;
    }

    public void setApprovalComment(String approvalComment) {
        this.approvalComment = approvalComment;
    }
    public String getSuperiorNode() {
        return superiorNode;
    }

    public void setSuperiorNode(String superiorNode) {
        this.superiorNode = superiorNode;
    }
    public String getSubordinateNode() {
        return subordinateNode;
    }

    public void setSubordinateNode(String subordinateNode) {
        this.subordinateNode = subordinateNode;
    }
    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }
    public String getCreateUserKey() {
        return createUserKey;
    }

    public void setCreateUserKey(String createUserKey) {
        this.createUserKey = createUserKey;
    }
    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getUpdateUserKey() {
        return updateUserKey;
    }

    public void setUpdateUserKey(String updateUserKey) {
        this.updateUserKey = updateUserKey;
    }
    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TblApprovalNode{" +
            "id=" + id +
            ", primaryKey=" + primaryKey +
            ", uuid=" + uuid +
            ", oldUuid=" + oldUuid +
            ", corpKey=" + corpKey +
            ", instanceKey=" + instanceKey +
            ", formJsonStr=" + formJsonStr +
            ", nodeType=" + nodeType +
            ", sequence=" + sequence +
            ", approverKey=" + approverKey +
            ", approver=" + approver +
            ", approvalTime=" + approvalTime +
            ", approvalResult=" + approvalResult +
            ", approvalComment=" + approvalComment +
            ", superiorNode=" + superiorNode +
            ", subordinateNode=" + subordinateNode +
            ", remarks=" + remarks +
            ", isDeleted=" + isDeleted +
            ", createUserKey=" + createUserKey +
            ", createUserName=" + createUserName +
            ", createTime=" + createTime +
            ", updateUserKey=" + updateUserKey +
            ", updateUserName=" + updateUserName +
            ", updateTime=" + updateTime +
        "}";
    }
}
